<title>个人中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<script type="text/javascript" src="#(assets)/js/jquery-2.2.4.min.js"></script>
<script src="#(path)/assets/plugins/layer/layer.js"></script>
#@checkToken()
<style> 
	body{font-family:"Microsoft YaHei",Arial,Helvetica,sans-serif,"宋体";}
	*{margin:0;padding:0;}
	li{list-style-type:none;}
	select,input{-webkit-appearance:none;border:0px;
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);   
	}
</style>
<body bgcolor="#f4f5f9" style="margin:0px;">
	<div align="center" style="width:100%;">
		<div style="height:80px;width:100%;background:#FFF;">
			<div style="width:40%;float:left;">
				<img style="margin-left:60%;width:35%;margin-right:10px;float:left;margin-top:20px;" src="#(assets)/images/mobile/center_1.png">
			</div>
			
			<div align="left"style="float:right;width:60%;margin-top:20px;">
				<div style="clear:both;font-size:18px;font-weight:600">400-123-1234</div>
				<div style="font-size:12px;">服务时间：09:00~17:00</div>
			</div>
		</div>
		<div style="height:50px;width:100%;background:#FFF;line-height:50px;">
			<div style="width:90%;border-top:1px solid #f4f5f9">
				<div style="float:left;color:#383838">安全等级</div>
				<div id="stars" style="float:right">
					
				</div>
			</div>
		</div>
		<div onclick="window.location.href='/app/page/help-aboutus'" style="margin-top:10px;height:50px;width:100%;background:#FFF;line-height:50px;">
			<div style="width:90%;">
				<div style="float:left;color:#383838"><img style="width:20px;margin-right:10px;float:left;margin-top:15px;" src="#(assets)/images/mobile/center_2.png">关于我们</div>
				<div style="float:right"><img style="width:20px;float:left;margin-top:15px;" src="#(assets)/images/mobile/personal_jiantou2.png"></div>
			</div>
		</div>
		
		<div onclick="window.location.href='/app/page/personal-account'" style="height:50px;width:100%;background:#FFF;line-height:50px;">
			<div style="width:90%;border-top:1px solid #f4f5f9">
				<div style="float:left;color:#383838"><img style="width:20px;margin-right:10px;float:left;margin-top:15px;" src="#(assets)/images/mobile/center_3.png">账户设置</div>
				<div style="float:right"><img style="width:20px;float:left;margin-top:15px;" src="#(assets)/images/mobile/personal_jiantou2.png"></div>
			</div>
		</div>

		
		<div id="logout" style="margin-top:10px;height:50px;width:100%;background:#FFF;line-height:50px;">
			<div align="center" style="width:90%;color:#fa3048">
					<a>退出登录</a>
			</div>
		</div>
	</div>


<script>
	var url ="#(path)/user/info?token=#(session.token??)";
	$.getJSON(url, function(datainfo) {
		console.log(datainfo);
		var datainfo = datainfo.data.info;
		var aa = datainfo.is_real_name_verify + datainfo.is_mail_verify + datainfo.is_bind_bank_card + datainfo.is_set_pay_password + datainfo.is_set_auth_question;
		var bb = 5 - aa;
		for(var i=1;i<=aa;i++){
			$("#stars").append("<img style='width:14px;float:left;margin-right:5px;margin-top:17px;' src='#(assets)/images/mobile/star2.png'>");
		}
		for(var i=1;i<=bb;i++){
			$("#stars").append("<img style='width:14px;float:left;margin-right:5px;margin-top:17px;' src='#(assets)/images/mobile/star1.png'>");
		}
		$("#logout").click(function(){
			var url2="#(path)/user/logout?token=#(session.token??)&mobile="+datainfo.mobile;
			$.getJSON(url2, function(datainfo2) {
				console.log(datainfo2);
				if(datainfo2.code=='success'){
					layer.msg(datainfo2.msg, {icon:1,time:1000},function(){
						location.href="#(path)/app/page/user-login" ;
					});
				}
			});
		});
	});
</script>



</body>